package cn.wolfcode.wolf2w.business.service;

import cn.wolfcode.wolf2w.business.domain.Strategy;
import cn.wolfcode.wolf2w.business.repository.StrategyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class StrategyService {
    @Autowired
    private StrategyRepository repository;
    //query =>question
    //size =>topK
    public List<Strategy> search(String query,int size) throws IOException {
        return repository.search(query,size);
    }



}
